package com.example.anjia03_3z.service;


import com.example.anjia03_3z.pojo.dto.ArticleAddNewDTO;
import com.example.anjia03_3z.pojo.vo.ArticleDetailVO;
import com.example.anjia03_3z.pojo.vo.ArticleListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 处理文章的业务接口
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Transactional
public interface IArticleService {

    void addArticle(ArticleAddNewDTO articleAddNewDTO);

    ArticleDetailVO getArticleById(Long id);

    List<ArticleListItemVO> list();


}
